package com.headStorm.httpuse;

public class StringHandler {
    public static void main(String[] args) {
        // rtmp://58.200.131.2:1935/livetv/hunantv
//        String liveAddress = "rtmp://58.200.131.2:1935/livetv/hunantv";
//        String[] split = liveAddress.split("/");
//        if(split.length == 5){
//            String ipAndPort =  split[2];
//            String ip = ipAndPort.split(":")[0];
//            int port =  Integer.parseInt(ipAndPort.split(":")[1]);
//            String appName =  split[3];
//            String pwd = split[4];
//            System.out.println(ip+" : "+port+" "+appName+" "+pwd);
//        }
        String path = "/usr/local/nginx/hmtl/record/a-2020-07-03-11_48_22.mp4";
        System.out.println(path.split("/")[ path.split("/").length-1]);
    }
}
